<%--
  Created by IntelliJ IDEA.
  User: 熊婷
  Date: 2025/7/2
  Time: 14:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
    <title>订单详情</title>
    <style>
        /* 添加你的样式 */
    </style>
</head>
<body>
<h1>订单详情</h1>
<div>订单编号: ${order.orderid}</div>
<div>订单状态: ${order.status}</div>
<div>总金额: ¥${order.totalPrice}</div>
<!-- 显示订单商品列表 -->
<table>
    <c:forEach items="${order.items}" var="item">
        <tr>
            <td>${item.recipeName}</td>
            <td>¥${item.price}</td>
            <td>${item.quantity}份</td>
        </tr>
    </c:forEach>
</table>
</body>
</html>